package com.logistics.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.logistics.Express;
import com.logistics.ExpressQueryParam;
import com.logistics.dao.ExpressDao;

import cn.easybuild.core.dao.AppBaseDao;
import cn.easybuild.core.service.StringPojoAppBaseServiceImpl;

@Service
public class ExpressServiceImpl extends StringPojoAppBaseServiceImpl<Express> implements ExpressService {

	@Override
	public List<Express> query(ExpressQueryParam param) {
		return dao.query(param);
	}
	
	private ExpressDao dao;

	@Autowired
	public void setDao(ExpressDao dao) {
		this.dao = dao;
	}

	@Override
	protected AppBaseDao<Express, String> getDao() {
		return dao;
	}

	@Override
	public List<Express> needPrints() {
		return dao.needPrints();
	}

}
